package com.naton.mydemo.model.api

import com.naton.common.network.BaseResponse
import com.naton.mydemo.bean.User
import io.reactivex.Single
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface ApiService {

    @FormUrlEncoded
    @POST("userLogin/appLogin")
    fun userLogin(@Field("telephone") telephone : String
                  , @Field("password") password : String) : Single<BaseResponse<User>>
}